package com.younion.vo;

import cpcns.component.common.base.BaseVO;
import cpcns.persister.converter.IDomainObject;
import cpcns.persister.service.CompositeID;

import java.util.Date;

public class FavoritesJoinFavourableEntityVO extends BaseVO implements
		IDomainObject, Cloneable {

	/**  */
	private static final long serialVersionUID = -1L;

	private Integer id;

	private Integer type;// 优惠券=2

	private Integer favourId;

	private Date createTime;

	private String userToken;

	private FavourableEntityVO favourableEntityVO;

	/**
	 * 
	 */
	public FavoritesJoinFavourableEntityVO() {
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the type
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * @return the favourId
	 */
	public Integer getFavourId() {
		return favourId;
	}

	/**
	 * @param favourId
	 *            the favourId to set
	 */
	public void setFavourId(Integer favourId) {
		this.favourId = favourId;
	}

	/**
	 * @return the createTime
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * @param createTime
	 *            the createTime to set
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUserToken() {
		return userToken;
	}

	public void setUserToken(String userToken) {
		this.userToken = userToken;
	}

	public CompositeID getCompositeID() {
		CompositeID _id = super.getCompositeID();
		_id.clear();
		if (id != null) {
			_id.addKey("id", id);
		}
		return _id;
	}

	public FavourableEntityVO getFavourableEntityVO() {
		return favourableEntityVO;
	}

	public void setFavourableEntityVO(FavourableEntityVO favourableEntityVO) {
		this.favourableEntityVO = favourableEntityVO;
	}
}
